#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <assert.h>
#include "rngs.h"

#define DEBUG 0
#define NOISY_TEST 1

// unit test the updateCoin() function.
int main() {
	int i;
	int bonus = 2;
	
	int k[10] = {adventurer, council_room, feast, gardens, mine,
			remodel, smithy, village, baron, great_hall};

	struct gameState G;
	struct gameState G1;

	i = initializeGame(2, k, 1, &G);

	printf("initializeGame(2, k, 1, &G) = %d\n", i);
	assert(i == 0);

	memcpy(&G1, &G, sizeof(struct gameState));

	updateCoins(1, &G, bonus);
	updateCoins(1, &G1, bonus);

	assert(G.coins == G1.coins);  	

	printf("No assertions failed\n");

	return 0;
}
